package com.zw.exception;

/**
 * Created by Zw on 2017/12/5.
 */
public class StudyException extends Exception {
    private static final long serialVersionUID = -7913153372904574437L;

    private int errorCode;

    public StudyException(String message) {
        super(message);
    }

    public StudyException(Throwable cause) {
        super(cause);
    }


    public StudyException(int errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public StudyException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public StudyException(String message, Throwable cause) {
        super(message, cause);
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
